package com.yyp.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yyp.bean.ReceiveInfo;
import com.yyp.dao.ReceiveInfoDao;
import com.yyp.service.ReceiveInfoService;

@Service
public class ReceiveInfoServiceImpl implements ReceiveInfoService {
	@Resource
	ReceiveInfoDao receiveInfoImpl;

	// public void del(String names) {

	// ReceiveInfoImpl.delete(names);
	// }

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.ReceiveInfoService#del(int)
	 */
	public void del(int id) {

		receiveInfoImpl.delete(id);
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.ReceiveInfoService#find(java.lang.Integer)
	 */
//	public ReceiveInfo find(Integer id) {
//		return receiveInfoImpl.find(id);
//	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.ReceiveInfoService#find(java.lang.String)
	 */
	public ReceiveInfo find(String name) {
		return receiveInfoImpl.find(name);

	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.ReceiveInfoService#findAll()
	 */
	public List<ReceiveInfo> findAll() {
		return receiveInfoImpl.findAll();
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.ReceiveInfoService#save(com.yyp.bean.ReceiveInfo)
	 */
	public void save(ReceiveInfo entity) {
		receiveInfoImpl.save(entity);
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.ReceiveInfoService#updata(com.yyp.bean.ReceiveInfo)
	 */
	public void updata(ReceiveInfo entity) {
		receiveInfoImpl.updata(entity);
	}

}
